package com.changgou.common_expension;

import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;


/**
 * @param <T>
 */

@Data
@NoArgsConstructor
public class ReturnMessage<T>  implements Serializable {

    private Integer code;//错误码
    private String message;//提示信息
    private T data;//返回具体内容


    public ReturnMessage(Integer code, String message, T data) {
        super();
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public ReturnMessage(int code, String message) {
        super();
        this.code = code;
        this.message = message;

    }












}
